package com.sunkingdom.qq.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sunkingdom.qq.user.entity.User;

public interface UserMapper {
	@Select("SELECT * FROM user WHERE userId = #{userId}")
	User getUserById(@Param("userId") String userId);

	@Select("SELECT * FROM user")
	List<User> selectUsers();
}
